home *** CD-ROM | disk | FTP | other *** search
- Path: rain.fr!world-net!usenet
- From: Frederic LACHASSE <lachass@worldnet.fr>
- Newsgroups: comp.lang.c++
- Subject: Re: Q: implementing streambuf::underflow() method
- Date: Sun, 25 Feb 1996 16:36:57 +0000
- Organization: World-Net information exchange, Internet provider.
- Message-ID: <VA.0000004c.00479ff9@fred>
- References: <4gij8m$pi7@news.xs4all.nl>
- Reply-To: lachass@worldnet.fr
- NNTP-Posting-Host: client15.sct.fr
- X-Newsreader: Virtual Access by Ashmount Research Ltd, http://www.ashmount.com
-
- In article <4gij8m$pi7@news.xs4all.nl>, Ronald Werring
- <ronaldw@xs4all.nl> wrote:
- >
- > I want to make a subclass of the streambuf class to
- > implement a different buffering strategy for an istream.
- > I use Visual-C++ (1.5 and 4.0).
- >
- > My question: "When is underflow() called? Only when
- > the buffer is empty or for every character?"
- >
-
- Very simple: underflaow() is called when the buffer is empty and a
- new character is needed. That may mean for each new character if the
- stream is unbuffered (so the buffer is always empty...).
-
- I hope this'll help.
-
- Frederic LACHASSE (ECP 86)
- CompuServe: 100530,2005
- Internet: lachass@worldnet.fr
-
-